import request from '@/utils/request.js'
import { useTokenStore } from '@/stores/token.js'
// 打卡签到请求
export const checkInService = (params) => {
    return request.get(`/attendance/check-in`,{params:params})
}

// 打卡签退请求
export const checkOutService = (params) => {
    return request.get(`/attendance/check-out`,{params:params})
}

// 获取学生周报请求
export const getWeeklyReportService = (memberId) => {
    return request.get(`/attendance/weekly-report/${memberId}`)
}

// 获取学生所有考勤记录
export const getDayReportService = (params) => {
    return request.get('/attendance',{params:params})
}

// 管理员生成所有学生周报请求
export const generateReportsService = () => {
    return request.post('/attendance/admin/generate-reports')

}
